This article is reproduced in: http://monkeymusic.blog.163.com/blog/static/4797639200912533652666/
Purpose
Returns the basic file name of a string parameter.Syntax
Basename string [suffix]Description
The basename command reads the string parameter,
1: string basename (string path [, string suffix]);A string containing a full path pointing to a file is provided. This function returns the basic file name. If the file name ends with suffix, this part will also be removed.In Windows, both slash (/)
2,WC [-LWM]
Options and parameters:
-L: only list rows;
-W: How many words are listed(English word);
-M: The number of characters;
3,Md5sum
Md5sum [Option]... [file]...
Print or check MD5. (128-bit) checksums.
With no file, or whenFile
Man , info, help, date, Hwclock, Cal, shutdown, reboot, Halt, Poweroff, type, CD, which, DirName, BaseName, who, which, Whatis, Makewhatis, Echo, hash, TTY tac:cat display the file file in reverse order ...: View the format of the contents of the
Suppose there is a path c:/coverage/homo_sapiens.sort.add_exon1_coverage.txt, to extract Homo_sapiens.sort.add_exon1_ Coverage.txt the file name, use the BaseName function and the start, stop parameter, as shown in the command line:filenameThe
Http://ruby-doc.org/core-2.1.2/File.html#method-c-dirname
(1) basename (file_name [, suffix]) → base_name
Returns the last component of the filename given inFile_name, Which can be formed using bothFile::SEPARATORAndFile::ALT_SEPARATORAs the
1. Directory Operations:(1) CD (Switch directory)CD ~ Back to home directoryCD Back to home directoryCd.. Back to top directoryCD-Go back to the directory just nowCd/var/spool/mail Absolute PathCd.. /mqueue relative Path (written by/var/spool/mail
Summary of php application path variables. Local server, domain name d.com, root path D: phpnowvhostsd.com. yii, with the requeir_onceaa.php file in the x. php code in the root directory, and aa. php requeir_onceabb.php
Local server, domain
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.